import React, { FC } from 'react';
import { Provider } from 'mobx-react';
import { renderRoutes } from 'react-router-config';
import { HashRouter } from 'react-router-dom';
import stores from '@/stores';

import routes from './router';
import './App.css';

const App: FC = () => (
  <HashRouter>
    <Provider {...stores}>{renderRoutes(routes)}</Provider>
  </HashRouter>
);

export default App;
